<%--
  Created by IntelliJ IDEA.
  User: 97990
  Date: 2022/7/17
  Time: 19:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script src="/js/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="/js/bootstrap3/js/bootstrap.min.js"></script>
<script src="/js/bootstrap-datetimepicker/js/moment-with-locales.js"></script>
<script src="/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="/js/fileinput5/js/fileinput.min.js"></script>
<script src="/js/fileinput5/js/locales/zh.js"></script>
<script src="/js/bootbox/bootbox.min.js"></script>
<script src="/js/bootbox/bootbox.locales.min.js"></script>
<script type="text/javascript" src="/js/ztree/js/jquery.ztree.core.min.js"></script>
<script src="/js/DataTables/DataTables-1.10.20/js/jquery.dataTables.min.js"></script>
<%--<script src="/js/DataTables/DataTables-1.10.20/js/dataTables.bootstrap.min.js"></script>--%>
<script src="/js/treetable/jquery.treetable.js"></script>

<script>
    $.ajaxSetup({
        complete:function (xhr,status){
            //重xhr中获取自定义头
            var v_head = xhr.getResponseHeader("fh-ajax-timeout");
            //如果自定义头的内容正确说明没有权限跳转到登录页面
            if (v_head && v_head == "timeout"){
                location.href="/login.jsp";
            }
        }
    })
</script>
